﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_console/_console.Master" AutoEventWireup="true" CodeBehind="application-edit.aspx.cs" Inherits="SmartSpace.WebApp._console.core.application_edit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
    <script>
        function onselecteduser(user) {
            $('#_ctlAnonymousUser').val(user.name);
            $('#_ctlAnonymousUserId').val(user.id);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
        
            修改应用程序信息
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkBack" runat="server">返回</asp:HyperLink>
    <asp:LinkButton ID="_ctlBtnSave" runat="server" OnClick="_ctlBtnSave_Click">保存</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">    
    <div class="form">
        <label>
            HostUrl(*)</label><br />
        <asp:TextBox ID="_ctlEditHostUrl" ClientIDMode="Static" runat="server" />
        <br />
        <label>
            名称</label><br />
        <asp:TextBox ID="_ctlEditText" runat="server" Width="400" />
        <br />
        <label>
            图标</label><br />
        <asp:FileUpload ID="_ctlFileImage" runat="server" />
        <br />
        <label>
            主题</label><br />
        <asp:DropDownList ID="_ctlListTheme" runat="server" DataTextField="Caption" DataValueField="Id"
            Width="400" />
        <br />
        <em>应用程序的类型</em><br />
        <label>
            Copyright</label><br />
        <asp:TextBox ID="_ctlEditCopyright" runat="server" Width="400"></asp:TextBox><br />
        <label>
            Allow anonymous access:</label><br />
        <asp:CheckBox ID="_ctlCheckAnonymousAccess" runat="server" /><br />
        <label>
            anonymous user:</label><br />
        <%--<asp:LinkButton ID="_ctlLinkAnonymousUser" runat="server" Text="select" />--%>
            <asp:TextBox ID="_ctlAnonymousUser" runat="server" ClientIDMode="Static" ReadOnly="true"/>
            <asp:HiddenField ID="_ctlAnonymousUserId" runat="server" ClientIDMode="Static"/>
            <a href="javascript:void();" onclick="_ss.popup('../common/select-user.aspx', onselecteduser);">select user</a>
        <br />
        <label>
            default page:</label><br />
        <%--<asp:LinkButton ID="_ctlLinkDefaultPage" runat="server" Text="select" />--%>
            <asp:DropDownList ID="_ctlListDefaultPage" runat="server" DataTextField="Name" DataValueField="Id" />
        <br />
        <asp:HiddenField ID="_ctlHiddenImageId" runat="server" />
    </div>
</asp:Content>
